const Mock = require('mockjs');

/**
 * 问卷调查
 */
function getQuestionnaireList () {
  const { Random } = Mock;
  let list = [];
  let randomNumber = Math.ceil(Math.random() * 10);
  for (let i = 0; i < randomNumber; i++) {
    let item = Mock.mock({
      'QuestionnaGuid': Random.guid(),
      'Name': `企业${Random.cword(4, 7)}体检`
    })
    list.push(item);
  }
  
  return list;
}

module.exports = {
  getQuestionnaireList
}